import callback from '../function/callback'
import filter from './filter'
import negate from '../util/negate'

function reject(obj, predicate, context) {
  predicate = callback(predicate, context)

  return filter(obj, negate(predicate), context)
}

export default reject
